﻿namespace SmartPlant.Model.Biz
{
    /// <summary>
    /// Insert into plant ( plant_name , plant_id , proj_id , site_id , chg_num , user_name , chg_status , chg_date , owner_id , hu_item_lib_id , plant_type_flg , wire_tag_flg , plant_flg , parent_id , pipe_standard ) Values( ' ' , 109965 , 1 , 2014 , 0 , 'DBA' , 'W' , TO_TIMESTAMP('3-02-2023 19:58:05.705000','DD-MM-YYYY HH24:MI:SS.FF') , 0 , 0 , '0' , '1' , 'Y' , 0 , '2' )
    ///</summary>
    public class Plant
    {
        /// <summary>
        ///  
        ///</summary>
        public decimal PLANT_ID { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public decimal ProjId { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public decimal SiteId { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public decimal ChgNum { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string UserName { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string ChgStatus { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public DateTime? ChgDate { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantName { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string Addr1 { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string Addr2 { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string City { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string State { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string Zip { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string Country { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantNote { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public decimal OwnerId { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string Location { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public decimal? HuItemLibId { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string BrowseDwName { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantTypeFlg { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string WireTagFlg { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public decimal? RoutingLengthUomId { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public decimal? RoutingWidthUomId { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public decimal? RoutingSpareLengthPercent { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public decimal? RoutingSpareLengthFix { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public decimal? ExtraRoutingLength { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string GenericTerminology { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public decimal? ParentId { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantUdfC01 { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantUdfC02 { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantUdfC03 { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantUdfC04 { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantUdfC05 { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantUdfC06 { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantUdfC07 { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantUdfC08 { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantUdfC09 { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantUdfC10 { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantUdfC11 { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantUdfC12 { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantUdfC13 { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantUdfC14 { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantUdfC15 { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantUdfC16 { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantUdfC17 { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantUdfC18 { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantUdfC19 { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantUdfC20 { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PlantFlg { get; set; }
        /// <summary>
        ///  
        ///</summary>
        public string PipeStandard { get; set; }

        #region 拓展
        public List<PlantArea>? Area { get; set; }


        #endregion
    }
}
